/**A星格子状态 */
export enum AStarGridType {
    /**障碍物 */
    Obstacles = 1,
    /**正常 */
    Normal = 0,
    /**起点 */
    Start = 2,
    /**终点 */
    End = 3

}
/**A星格子信息 */
export interface AStarGrid {
    x: number,
    y: number,
    type: AStarGridType,
    f: number,
    g: number,
    h: number,
    parent?: AStarGrid
}


/**A星地图存储数据结构 */
export interface AStarMapData {
    gridW: number,
    gridH: number,
    mapW: number,
    mapH: number,
    is8dir: boolean,
    gridsType: Array<Array<AStarGridType>>
}